home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / winsock / ws_ping.zip / WSPI_SRC.ZIP / WS_GLOB.H < prev    next >
C/C++ Source or Header  |  1994-01-20  |  3KB  |  90 lines

  1. /***************************************************************************
  2.   Windows Sockets Client Application Suport Module
  3.  
  4.   Written by:
  5.       John A. Junod             Internet: <junodj@css583.gordon.army.mil>
  6.       267 Hillwood Street                 <zj8549@trotter.usma.edu>
  7.       Martinez, GA 30907      Compuserve: 72321,366 
  8.  
  9.   This program executable and all source code is released into the public
  10.   domain.  It would be nice to give me a little credit for any use of this
  11.   code.  The primary purpose of this application was to learn what it takes
  12.   to write a Windows Sockets Application.
  13.  
  14. *****************************************************************************/
  15. /*
  16.   MODULE: WS_GLOB.H  (global header file)
  17. */
  18.  
  19. #include "winsock.h"
  20.  
  21. #ifndef WS_GLOBHEADER
  22.  
  23. #define WS_GLOBHEADER
  24.  
  25. #ifndef INADDR_NONE
  26. #define INADDR_NONE 0xffffffff
  27. #endif
  28.  
  29. #ifndef MAXHOSTNAMELEN
  30. #define MAXHOSTNAMELEN 64
  31. #endif
  32.  
  33. #ifndef MAXPACKET
  34. #define MAXPACKET 4096
  35. #endif
  36.  
  37. // some miscellaneous definitions that we use
  38.  
  39. #define FTP_PRELIM   1
  40. #define FTP_COMPLETE 2
  41. #define FTP_CONTINUE 3
  42. #define FTP_RETRY    4
  43. #define FTP_ERROR    5
  44.  
  45. #ifndef IS_GLOBAL_C
  46.  
  47. extern BOOL bAutoStart;
  48. extern BOOL bAborted;
  49.  
  50. extern char szMsgBuf[MAXPACKET];     // main i/o buffer
  51. extern u_char szSendPkt[MAXPACKET];  // output transfer buffer
  52. extern char szString[512];           // temp string area
  53. extern char szDlgPrompt[80];         // used by input dialog as prompt
  54. extern char szDlgEdit[80];           // used by input dialog for output
  55. extern char szRemoteHost[80];        // remote host name/addr to connect to
  56. extern char szAppName[20];           // this programs name "ws_ftp"
  57. extern char szIniFile[];             // INI file name
  58.  
  59. extern GLOBALHANDLE hGMem[100];      // memory for debug window display
  60.  
  61. extern HCURSOR hStdCursor;           // cursors
  62. extern HCURSOR hWaitCursor;          // cursors
  63.  
  64. extern HWND hInst;                   // handle of instance
  65. extern HWND hWndMain;                // handle of main window
  66.  
  67. extern int bConnected;               // connected flag
  68. extern int bCmdInProgress;           // command in progress flag
  69.  
  70. extern int nWndx;                    // the x axis multiplier
  71. extern int nWndy;                    // the y axis multiplier
  72.  
  73. // options
  74. extern int bVerbose;       // maximum verbosity (turns extra debug msgs on)
  75.  
  76. extern int iCode;          // return code from last command(..)
  77.  
  78. extern int ptrhGMem;
  79.  
  80. extern SOCKET ping_socket;           // control channel socket
  81.  
  82. extern WORD sVPos;                   // scroll pos for debug window
  83.  
  84. extern WSADATA WSAData;              // windows sockets dll information
  85.  
  86. #endif /* if IS_GLOBAL_C */
  87.  
  88. #endif /* if WS_GLOBHEADER */
  89.  
  90.